<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
[#include "/admin/include/head.htm"]
<script type="text/javascript">
	var grid;
	$(function(){
		 grid = $("#maingrid").ligerGrid({
            columns: [
				{display: 'ID', name: 'id', width:50, align: 'center', isAllowHide: false},
				{display: '种类名', name: 'name', align: 'center', width: 200 }
			],  pageSize:20, url: 'queryData.jhtml',toolbar: {}, width: '100%', height:'100%', enabledSort: true
        });

        $("#pageloading").hide();
		LG.loadToolbar(grid);
		//绑定搜索按钮
		LG.search(grid);

		$("#goodsCategoryIsNull").change(function(){
			var val = $.trim($(this).val());
			if(val == ""){
				$(this).attr("name","");
			}else if(val == "isNull"){
				$(this).attr("name","search_isNull_goodsCategory");
			}else if(val == "isNotNull"){
				$(this).attr("name","search_isNotNull_goodsCategory");
			}
		});
	});

	function add(){
		top.f_addTab(null, '种类', 'b2c/intergral_shop_class/add.jhtml');
	}
	//编辑种类
	function edit(){
		var selecteds = grid.getSelecteds();
		if (selecteds.length != 1) {
			LG.tip('请选择一行记录!');
			return;
		}
		top.f_addTab(null, '修改种类', 'b2c/intergral_shop_class/edit/' + selecteds[0].id+".jhtml");
	};
</script>
</head>
<body style="padding:10px; overflow:hidden;">
	<div id="functions">
		<div class="clearfix">
			<div style="float:left;">
				<span>
					种类名称：<input type="text" class="formText" name="search_LIKE_name"/>
				</sapn>

				<input type="button" class="button" value="搜索" id="search"/>
				<a href="#" id="search_btn_reset" face="Wingdings 3">清除本次搜索</a>
			</div>
		</div>
	</div>
	<div id="maingrid" style="margin:0; padding:0"></div>
</body>
</html>